function resize() {
  const screenWidth = document.documentElement.clientWidth
  const rate = 16 / 9
  document.body.style.height = screenWidth / rate + 'px'
  document.documentElement.style = `font-size:${screenWidth / 1920 * 100}px`
}

resize()
window.addEventListener('resize', resize)